package com.telit.common.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class MenuTreeVO implements Serializable {

    private Long id;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 父级菜单id
     */
    private Long parentId;

    /**
     * 菜单编码
     */
    private String code;

    /**
     * 菜单排序
     */
    private Integer menuSort;

    /**
     * 子菜单
     */
    private List<MenuTreeVO> children = new ArrayList<>();

    /**
     * 附加字段，多余的菜单显示用map添加
     */
    private Map<String,Object> data;

    private static final long serialVersionUID = 1L;
}
